namespace RiceShop.Models
{
    /// <summary>
    /// 支付查询结果类
    /// </summary>
    public class PaymentQueryResult
    {
        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNo { get; set; } = string.Empty;

        /// <summary>
        /// 交易状态
        /// SUCCESS—支付成功
        /// REFUND—转入退款
        /// NOTPAY—未支付
        /// CLOSED—已关闭
        /// REVOKED—已撤销（付款码支付）
        /// USERPAYING--用户支付中（付款码支付）
        /// PAYERROR--支付失败(其他原因，如银行返回失败)
        /// </summary>
        public string TradeState { get; set; } = string.Empty;

        /// <summary>
        /// 交易状态描述
        /// </summary>
        public string TradeStateDesc { get; set; } = string.Empty;

        /// <summary>
        /// 交易类型
        /// </summary>
        public string TradeType { get; set; } = string.Empty;

        /// <summary>
        /// 微信支付订单号
        /// </summary>
        public string? TransactionId { get; set; }

        /// <summary>
        /// 支付完成时间
        /// </summary>
        public string? SuccessTime { get; set; }
    }
} 